<?php

namespace adibilis\adminBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class NewsCommentType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('content', 'textarea', array('label' => ' ', 'attr' => array('rows' => '10', 'COLS' => '40', 'class' => 'span6', 'placeholder'=>"comment.placeholder"))
                )
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'adibilis\adminBundle\Entity\NewsComment'
        ));
    }

    public function getName()
    {
        return 'adibilis_adminbundle_newscommenttype';
    }
}
